<?php

namespace App\Http\Controllers\V1\Admin;

use App\Models\V1\DictType;
use Illuminate\Http\Request;

class DictTypeController extends BaseController
{

    /**
     * 字典类型选择
     * @param Request $request
     * @return \Illuminate\Http\JsonResponse
     */
    public function treeselect(Request $request)
    {
        $type_model=new DictType();
        $list=$type_model->select('dict_name as label','dict_type as value')->where('status',0)->get()->toArray();
        return ajax_output(200,"成功",$list);
    }

}
